package leetCode.hw.math;

public class HJ55Solution implements HJ55 {


    @Override
    public int relevanceSeven(int n) {
        int result = 0;
        for(int i=7;i<=n;i++) {
            if(i%7==0) result++;
            else if((i+"").contains("7")) result++;
        }
        return result;
    }

}
